#include<stdio.h>
int main() {
	char s[1000] = "L oryh brx yhub pxfk.";
	freopen("freq.c", "r", stdin);
	int freq[26] = { 0 };
	memset(freq, 0, sizeof(freq));
	while (gets(s)) {
		int len = strlen(s), i;

		for (i = 0; i < len; i++) {
			if (isalpha(s[i]) && islower(s[i]))
				freq[s[i] - 'a']++;
			else if (isalpha(s[i]) && isupper(s[i]))
				freq[s[i] - 'A']++;
		}

	}
	int i;
	for (i = 0; i < 26; i++)
		printf("%c %d\n", 'a' + i, freq[i]);
	return 0;
}
